package com.x.crm.http.response.login;

import com.x.crm.DocDesc;
import com.x.security.model.Role;

import java.io.Serializable;

public class CrmRole implements Serializable {
    @DocDesc("角色id")
    private Integer roleId;
    @DocDesc("角色名称")
    private String roleName;

    public CrmRole(Role role) {
        this.roleId = role.getRoleId();
        this.roleName = role.getRoleName();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
